Negates an expression by inverting the bit values.
ビット値を反転させて、表式の論理否定を取ります。
Result = Not Expression
Result = Not Expression
Result: Any numeric variable that contains the result of the negation.
Result: 演算結果を格納する数値変数。
Expression: Any expression that you want to negate.
Expression: 論理否定を行う式。
When a Boolean expression is negated, the value True changes to False, and the value False changes to True.
ブール型の表式に対して論理否定による演算を行う場合、True の値は False に変換され、False の値は True に変換されます。
In a bitwise negation each individual bit is inverted.
ビット単位の論理否定を行う場合は、個々のビットが反転されます。
Sub ExampleNot
Sub ExampleNot
Dim vA as Variant, vB as Variant, vC as Variant, vD as Variant
Dim vA as Variant, vB as Variant, vC as Variant, vD as Variant
Dim vOut as Variant
Dim vOut as Variant
vA = 10: vB = 8: vC = 6: vD = Null
vA = 10:vB = 8:vC = 6:vD = Null
vOut = Not vA REM Returns -11
vOut = Not vA REM 戻り値は -11
vOut = Not(vC > vD) REM Returns -1
vOut = Not(vC > vD) REM Returns -1
vOut = Not(vB > vA) REM Returns -1
vOut = Not(vB > vA) REM 戻り値は -1
vOut = Not(vA > vB) REM Returns 0
vOut = Not(vA > vB) REM 戻り値は0
end Sub
end Sub